Skip to content

fix: dist ships raw JSX — compile with babel-preset-solid - #7

Merged
Peyton-Spencer merged 1 commit into
mainfrom
fix/compile-jsx-dist
Jul 19, 2026
Merged

fix: dist ships raw JSX — compile with babel-preset-solid#7
Peyton-Spencer merged 1 commit into
mainfrom
fix/compile-jsx-dist

Conversation

@Peyton-Spencer

Copy link
Copy Markdown
Contributor

1.4.0's dist/index.js contains raw JSX because the index entry used jsx: "preserve" — consumers without vite-plugin-solid configured to reach into node_modules/solid-translate (i.e. everyone by default) get parse errors from their bundler and test runner.

  • index entry now builds through esbuild-plugin-solid (babel-preset-solid), emitting plain JS with dom-expressions calls; solid-js/web externalized
  • CI smoke: esbuild dist/index.js --bundle parse check so raw JSX can never ship again
  • 136 tests green, tsc clean, CLI smoke unaffected

🤖 Generated with Claude Code

dist/index.js shipped raw JSX (esbuild jsx: preserve), so any consumer
whose bundler wasn't configured to compile JSX inside node_modules/
solid-translate failed to parse the package. Compile with
esbuild-plugin-solid (babel-preset-solid) so dist is plain JS with
dom-expressions calls. Adds a CI parse smoke for dist/index.js.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Peyton-Spencer
Peyton-Spencer merged commit 7eb074c into main Jul 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant